package com.ph.custom.processor;

import com.ph.custom.cenum.TokenCheckEnum;
import com.ph.custom.cenum.UserCacheEnum;

public interface UserCacheProcessor {
	
	/**
	 * 
	 * @Title: userCachePreHandle   
	 * @Description: 缓存处理   
	 * @param: @param uenum 处理枚举值
	 * @param: @param clas 需要返回的对象class
	 * @param: @param resource 资源对象
	 * @param: @param obj 请求对象
	 * @param: @return
	 * @param: @throws Throwable      
	 * @return: T      
	 * @throws
	 */
	<T> T userCachePreHandle(UserCacheEnum uenum, Class<T> clas, Object resource, Object obj) throws Throwable;
	/**
	 * 
	 * @Title: tokenPreHandle   
	 * @Description: token   
	 * @param: @param tuenm
	 * @param: @return
	 * @param: @throws Throwable      
	 * @return: String      
	 * @throws
	 */
	String tokenPreHandle(TokenCheckEnum tuenm,String token) throws Throwable;
}
